3.1.29 \(\int \frac {x^3 (A+B x)}{(a+b x^2)^{3/2}} \, dx\) [29]

Optimal. Leaf size=81 \[ -\frac {x^2 (A+B x)}{b \sqrt {a+b x^2}}+\frac {(4 A+3 B x) \sqrt {a+b x^2}}{2 b^2}-\frac {3 a B \tanh ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a+b x^2}}\right )}{2 b^{5/2}} \]

[Out]

-3/2*a*B*arctanh(x*b^(1/2)/(b*x^2+a)^(1/2))/b^(5/2)-x^2*(B*x+A)/b/(b*x^2+a)^(1/2)+1/2*(3*B*x+4*A)*(b*x^2+a)^(1
/2)/b^2

________________________________________________________________________________________

Rubi [A]
time = 0.03, antiderivative size = 81, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {833, 794, 223, 212} \begin {gather*} \frac {\sqrt {a+b x^2} (4 A+3 B x)}{2 b^2}-\frac {x^2 (A+B x)}{b \sqrt {a+b x^2}}-\frac {3 a B \tanh ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a+b x^2}}\right )}{2 b^{5/2}} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(x^3*(A + B*x))/(a + b*x^2)^(3/2),x]

[Out]

-((x^2*(A + B*x))/(b*Sqrt[a + b*x^2])) + ((4*A + 3*B*x)*Sqrt[a + b*x^2])/(2*b^2) - (3*a*B*ArcTanh[(Sqrt[b]*x)/
Sqrt[a + b*x^2]])/(2*b^(5/2))

Rule 212

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[-b, 2]))*ArcTanh[Rt[-b, 2]*(x/Rt[a, 2])], x]
 /; FreeQ[{a, b}, x] && NegQ[a/b] && (GtQ[a, 0] || LtQ[b, 0])

Rule 223

Int[1/Sqrt[(a_) + (b_.)*(x_)^2], x_Symbol] :> Subst[Int[1/(1 - b*x^2), x], x, x/Sqrt[a + b*x^2]] /; FreeQ[{a,
b}, x] &&  !GtQ[a, 0]

Rule 794

Int[((d_.) + (e_.)*(x_))*((f_.) + (g_.)*(x_))*((a_) + (c_.)*(x_)^2)^(p_), x_Symbol] :> Simp[((e*f + d*g)*(2*p
+ 3) + 2*e*g*(p + 1)*x)*((a + c*x^2)^(p + 1)/(2*c*(p + 1)*(2*p + 3))), x] - Dist[(a*e*g - c*d*f*(2*p + 3))/(c*
(2*p + 3)), Int[(a + c*x^2)^p, x], x] /; FreeQ[{a, c, d, e, f, g, p}, x] &&  !LeQ[p, -1]

Rule 833

Int[((d_.) + (e_.)*(x_))^(m_)*((f_.) + (g_.)*(x_))*((a_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Simp[(d + e*x)^(m
 - 1)*(a + c*x^2)^(p + 1)*((a*(e*f + d*g) - (c*d*f - a*e*g)*x)/(2*a*c*(p + 1))), x] - Dist[1/(2*a*c*(p + 1)),
Int[(d + e*x)^(m - 2)*(a + c*x^2)^(p + 1)*Simp[a*e*(e*f*(m - 1) + d*g*m) - c*d^2*f*(2*p + 3) + e*(a*e*g*m - c*
d*f*(m + 2*p + 2))*x, x], x], x] /; FreeQ[{a, c, d, e, f, g}, x] && NeQ[c*d^2 + a*e^2, 0] && LtQ[p, -1] && GtQ
[m, 1] && (EqQ[d, 0] || (EqQ[m, 2] && EqQ[p, -3] && RationalQ[a, c, d, e, f, g]) ||  !ILtQ[m + 2*p + 3, 0])

Rubi steps

\begin {align*} \int \frac {x^3 (A+B x)}{\left (a+b x^2\right )^{3/2}} \, dx &=-\frac {x^2 (A+B x)}{b \sqrt {a+b x^2}}+\frac {\int \frac {x (2 a A+3 a B x)}{\sqrt {a+b x^2}} \, dx}{a b}\\ &=-\frac {x^2 (A+B x)}{b \sqrt {a+b x^2}}+\frac {(4 A+3 B x) \sqrt {a+b x^2}}{2 b^2}-\frac {(3 a B) \int \frac {1}{\sqrt {a+b x^2}} \, dx}{2 b^2}\\ &=-\frac {x^2 (A+B x)}{b \sqrt {a+b x^2}}+\frac {(4 A+3 B x) \sqrt {a+b x^2}}{2 b^2}-\frac {(3 a B) \text {Subst}\left (\int \frac {1}{1-b x^2} \, dx,x,\frac {x}{\sqrt {a+b x^2}}\right )}{2 b^2}\\ &=-\frac {x^2 (A+B x)}{b \sqrt {a+b x^2}}+\frac {(4 A+3 B x) \sqrt {a+b x^2}}{2 b^2}-\frac {3 a B \tanh ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a+b x^2}}\right )}{2 b^{5/2}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.26, size = 74, normalized size = 0.91 \begin {gather*} \frac {4 a A+3 a B x+2 A b x^2+b B x^3}{2 b^2 \sqrt {a+b x^2}}+\frac {3 a B \log \left (-\sqrt {b} x+\sqrt {a+b x^2}\right )}{2 b^{5/2}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(x^3*(A + B*x))/(a + b*x^2)^(3/2),x]

[Out]

(4*a*A + 3*a*B*x + 2*A*b*x^2 + b*B*x^3)/(2*b^2*Sqrt[a + b*x^2]) + (3*a*B*Log[-(Sqrt[b]*x) + Sqrt[a + b*x^2]])/
(2*b^(5/2))

________________________________________________________________________________________

Maple [A]
time = 0.12, size = 98, normalized size = 1.21

method result size
risch \(\frac {\left (B x +2 A \right ) \sqrt {b \,x^{2}+a}}{2 b^{2}}+\frac {a B x}{b^{2} \sqrt {b \,x^{2}+a}}-\frac {3 a B \ln \left (x \sqrt {b}+\sqrt {b \,x^{2}+a}\right )}{2 b^{\frac {5}{2}}}+\frac {a A}{b^{2} \sqrt {b \,x^{2}+a}}\) \(77\)
default \(B \left (\frac {x^{3}}{2 b \sqrt {b \,x^{2}+a}}-\frac {3 a \left (-\frac {x}{b \sqrt {b \,x^{2}+a}}+\frac {\ln \left (x \sqrt {b}+\sqrt {b \,x^{2}+a}\right )}{b^{\frac {3}{2}}}\right )}{2 b}\right )+A \left (\frac {x^{2}}{b \sqrt {b \,x^{2}+a}}+\frac {2 a}{b^{2} \sqrt {b \,x^{2}+a}}\right )\) \(98\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^3*(B*x+A)/(b*x^2+a)^(3/2),x,method=_RETURNVERBOSE)

[Out]

B*(1/2*x^3/b/(b*x^2+a)^(1/2)-3/2*a/b*(-x/b/(b*x^2+a)^(1/2)+1/b^(3/2)*ln(x*b^(1/2)+(b*x^2+a)^(1/2))))+A*(x^2/b/
(b*x^2+a)^(1/2)+2*a/b^2/(b*x^2+a)^(1/2))

________________________________________________________________________________________

Maxima [A]
time = 0.29, size = 85, normalized size = 1.05 \begin {gather*} \frac {B x^{3}}{2 \, \sqrt {b x^{2} + a} b} + \frac {A x^{2}}{\sqrt {b x^{2} + a} b} + \frac {3 \, B a x}{2 \, \sqrt {b x^{2} + a} b^{2}} - \frac {3 \, B a \operatorname {arsinh}\left (\frac {b x}{\sqrt {a b}}\right )}{2 \, b^{\frac {5}{2}}} + \frac {2 \, A a}{\sqrt {b x^{2} + a} b^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^3*(B*x+A)/(b*x^2+a)^(3/2),x, algorithm="maxima")

[Out]

1/2*B*x^3/(sqrt(b*x^2 + a)*b) + A*x^2/(sqrt(b*x^2 + a)*b) + 3/2*B*a*x/(sqrt(b*x^2 + a)*b^2) - 3/2*B*a*arcsinh(
b*x/sqrt(a*b))/b^(5/2) + 2*A*a/(sqrt(b*x^2 + a)*b^2)

________________________________________________________________________________________

Fricas [A]
time = 7.08, size = 197, normalized size = 2.43 \begin {gather*} \left [\frac {3 \, {\left (B a b x^{2} + B a^{2}\right )} \sqrt {b} \log \left (-2 \, b x^{2} + 2 \, \sqrt {b x^{2} + a} \sqrt {b} x - a\right ) + 2 \, {\left (B b^{2} x^{3} + 2 \, A b^{2} x^{2} + 3 \, B a b x + 4 \, A a b\right )} \sqrt {b x^{2} + a}}{4 \, {\left (b^{4} x^{2} + a b^{3}\right )}}, \frac {3 \, {\left (B a b x^{2} + B a^{2}\right )} \sqrt {-b} \arctan \left (\frac {\sqrt {-b} x}{\sqrt {b x^{2} + a}}\right ) + {\left (B b^{2} x^{3} + 2 \, A b^{2} x^{2} + 3 \, B a b x + 4 \, A a b\right )} \sqrt {b x^{2} + a}}{2 \, {\left (b^{4} x^{2} + a b^{3}\right )}}\right ] \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^3*(B*x+A)/(b*x^2+a)^(3/2),x, algorithm="fricas")

[Out]

[1/4*(3*(B*a*b*x^2 + B*a^2)*sqrt(b)*log(-2*b*x^2 + 2*sqrt(b*x^2 + a)*sqrt(b)*x - a) + 2*(B*b^2*x^3 + 2*A*b^2*x
^2 + 3*B*a*b*x + 4*A*a*b)*sqrt(b*x^2 + a))/(b^4*x^2 + a*b^3), 1/2*(3*(B*a*b*x^2 + B*a^2)*sqrt(-b)*arctan(sqrt(
-b)*x/sqrt(b*x^2 + a)) + (B*b^2*x^3 + 2*A*b^2*x^2 + 3*B*a*b*x + 4*A*a*b)*sqrt(b*x^2 + a))/(b^4*x^2 + a*b^3)]

________________________________________________________________________________________

Sympy [A]
time = 4.51, size = 117, normalized size = 1.44 \begin {gather*} A \left (\begin {cases} \frac {2 a}{b^{2} \sqrt {a + b x^{2}}} + \frac {x^{2}}{b \sqrt {a + b x^{2}}} & \text {for}\: b \neq 0 \\\frac {x^{4}}{4 a^{\frac {3}{2}}} & \text {otherwise} \end {cases}\right ) + B \left (\frac {3 \sqrt {a} x}{2 b^{2} \sqrt {1 + \frac {b x^{2}}{a}}} - \frac {3 a \operatorname {asinh}{\left (\frac {\sqrt {b} x}{\sqrt {a}} \right )}}{2 b^{\frac {5}{2}}} + \frac {x^{3}}{2 \sqrt {a} b \sqrt {1 + \frac {b x^{2}}{a}}}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**3*(B*x+A)/(b*x**2+a)**(3/2),x)

[Out]

A*Piecewise((2*a/(b**2*sqrt(a + b*x**2)) + x**2/(b*sqrt(a + b*x**2)), Ne(b, 0)), (x**4/(4*a**(3/2)), True)) +
B*(3*sqrt(a)*x/(2*b**2*sqrt(1 + b*x**2/a)) - 3*a*asinh(sqrt(b)*x/sqrt(a))/(2*b**(5/2)) + x**3/(2*sqrt(a)*b*sqr
t(1 + b*x**2/a)))

________________________________________________________________________________________

Giac [A]
time = 1.39, size = 70, normalized size = 0.86 \begin {gather*} \frac {{\left ({\left (\frac {B x}{b} + \frac {2 \, A}{b}\right )} x + \frac {3 \, B a}{b^{2}}\right )} x + \frac {4 \, A a}{b^{2}}}{2 \, \sqrt {b x^{2} + a}} + \frac {3 \, B a \log \left ({\left | -\sqrt {b} x + \sqrt {b x^{2} + a} \right |}\right )}{2 \, b^{\frac {5}{2}}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^3*(B*x+A)/(b*x^2+a)^(3/2),x, algorithm="giac")

[Out]

1/2*(((B*x/b + 2*A/b)*x + 3*B*a/b^2)*x + 4*A*a/b^2)/sqrt(b*x^2 + a) + 3/2*B*a*log(abs(-sqrt(b)*x + sqrt(b*x^2
+ a)))/b^(5/2)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {x^3\,\left (A+B\,x\right )}{{\left (b\,x^2+a\right )}^{3/2}} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((x^3*(A + B*x))/(a + b*x^2)^(3/2),x)

[Out]

int((x^3*(A + B*x))/(a + b*x^2)^(3/2), x)

________________________________________________________________________________________